<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:web="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" id="WebApp_9" version="2.4">
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  
  <filter>
  	<filter-name>characterEncodingFilter</filter-name>
  	<filter-class>org.imyy.filter.CharacterEncodingFilter</filter-class>
  	<init-param>
  		<param-name>characterEncoding</param-name>
  		<param-value>UTF-8</param-value>
  	</init-param>
  	<init-param>
  		<param-name>enabled</param-name>
  		<param-value>true</param-value>
  	</init-param>
  </filter>
  <filter-mapping>
  	<filter-name>characterEncodingFilter</filter-name>
  	<url-pattern>/*</url-pattern>
  </filter-mapping>
<!-- Struts2配置 开始 -->
<filter>
	<filter-name>struts2</filter-name>
	<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
	<!-- <init-param>
		<param-name>struts.action.extension</param-name>
		<param-value>action</param-value>
	</init-param> -->
</filter>
<filter-mapping>
	<filter-name>struts2</filter-name>
	<url-pattern>*.action</url-pattern>
</filter-mapping>
<!-- Struts2配置 结束 -->
  <!-- <filter>
  	<filter-name>myLogFilter</filter-name>
  	<filter-class>org.imyy.filter.LogFilter</filter-class>
  </filter>
  <filter-mapping>
  	<filter-name>myLogFilter</filter-name>
  	<url-pattern>/*</url-pattern>
  </filter-mapping> -->
  
  
  
  <filter>
  	<filter-name>testFilter</filter-name>
  	<filter-class>org.imyy.filter.TestFilter</filter-class>
  </filter>
  <filter-mapping>
  	<filter-name>testFilter</filter-name>
  	<url-pattern>/images/*</url-pattern>
  </filter-mapping>
  
  <!-- <servlet>
    <servlet-name>validate</servlet-name>
    <servlet-class>org.imyy.js.Validate</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>validate</servlet-name>
    <url-pattern>/js/Validate.do</url-pattern>
  </servlet-mapping> -->
  

</web-app>